<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            display: flex;
            /* 修改主轴的方向 */
            flex-direction: column;
            justify-content: center;
            align-items: center;

            width: 200px;
            height: 200px;
            border: 1px solid #000;
            font-size: 20px;
        }

        img {
            width: 50px;
            height: 50px;
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="../day04/img/img.gif" alt="">
        <div>文字</div>
    </div>
</body>

</html>